import instance from "@/utils/request";
//对关注列表的信息进行显示
export const GetAttention=(userId,resourcesName,classesId)=>{
    const params = new URLSearchParams();
    params.set("resourcesName",resourcesName);
    params.set("classesId",classesId);
    params.set("id",userId);
    return instance.get("/attention",{params:params});
}
//添加信息到自己的资源库中
export const AddAttention=(userId,resourcesId)=>{
    const data={
        userId:userId,
        resourcesId:resourcesId
    }
    return instance.post("/attention",data);
}
